<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Main extends CI_Controller {	
	 function __construct()
	 {
	  	parent::__construct();
	  	$this->load->library('session');
	 }
	 function index()
	{
		if($this->session->userdata('logged_in')==TRUE)
		{$this->load->view("manage/index");}
		else
		{
			redirect(base_url().'login', 'refresh');
		}
	//	$this->load->view("manage/index");
	}
	function mainframe()
	{
			$this->load->view("manage/mainframe");
	}
		function leftframe()
	{
		$user_name['UserName']=$this->session->userdata('UserName');
			$this->load->view("manage/leftframe",$user_name);
	}
		function manframe()
	{
			$this->load->view("manage/manframe");
	}
		function profile()
	{
			$this->load->view("manage/profile");
	}
		function switchframe()
	{
			$this->load->view("manage/switchframe");
	}
		function topframe()
	{
			$this->load->view("manage/topframe");
	}
		function chanagepass()
	{
			$this->load->view("manage/chanagepass");
	}
}